from torqueSrc.tools.cleanDecorator import CleanDecorator
from common.config import torqueConfig as Config
from torqueSrc.tools.loadFile import toCsv, toAttrCsv

# @CleanDecorator.drop_duplicates
@CleanDecorator.drop_bigorsmall
@CleanDecorator.drop_discretePoint
def onlCleanProcess(X):
    print('cleanProcess 进行中.............')
    return X

def cleanProcess():
    toCsv(Config.onlInitialData, Config.onlCleanProcess, onlCleanProcess)
    toAttrCsv(Config.onlCleanProcess, Config.onlCleanAttr)
    print('cleanProcess 完毕................')
    # show3dFig(Config.onlCleanProcess)

if __name__ == '__main__':

    cleanProcess()